/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = frcmd_server.h                                     */
/*  NOTE      =                                                    */
/*  DATE      = 2014/11/17 by guojq                                */
/*******************************************************************/

#ifndef __FRCMD_SERVER_H_
#define __FRCMD_SERVER_H_

//错误返回信息列表：
// 不支持
#define FRCMD_SERVER_NOT_SUPPORT    "命令不支持"
// 配置文件拷贝等失败
#define ERR_CONFIG_FAILED           "配置文件错误"
//内存错位、严重错误
#define ERR_SERIOUS_DESTROY         "内存严重错误"
//内存申请失败
#define ERR_MALLOC_FAILED           "内存分配错误"
//读取xml文件内容失败
#define ERR_XML_GET                 "读取xml文件失败"
//读取比较xml文件内容失败
#define ERR_XML_DETECT              "比较xml文件失败"
//写xml文件失败
#define ERR_XML_INSERT              "写入xml文件失败"
//删除xml文件字段里的内容失败
#define ERR_XML_DEL                 "删除xml文件内容失败"
//删除xml文件一整个字段失败
#define ERR_XML_DEL_ALL             "删除xml文件内容失败"
//加载模块失败
#define ERR_REGISTER_FAIL           "模块加载失败"
//加载模块已加载
#define ERR_ALREADY_REGISTER        "模块已加载"
//卸载模块失败
#define ERR_UNREGISTER_FAIL         "卸载模块失败"
//卸载模块已卸载
#define ERR_ALREADY_UNREGISTER      "模块已卸载"
//卸载模块已删除
#define ERR_ALREADY_REMOVE          "模块已删除"
//reload L7_default失败
#define ERR_L7DEFAULT_RELOAD        "重载模块失败"

#define ERR_CHK_LUA                 "lua语法错误"

int frcmd_server_start(void);
int frzmq_send_msg(void **socket, const char *p_data, int i_data_len, int i_flag_more);

#endif
